//
//  DisherPosition.m
//  Recipe
//
//  Created by bing han on 12-7-20.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "DisherPosition.h"

@implementation DisherPosition
static DisherPosition *instence = nil;

@synthesize disherPostion = _disherPostion;

+(DisherPosition*) newInstence{
    @synchronized(self){
        if (instence == nil) {
            instence = [[DisherPosition alloc] init];
            instence.disherPostion = [[NSMutableDictionary alloc] init];
        }
    }
    return  instence;
}

+(id) allocWithZone:(NSZone *)zone{
    @synchronized(self){
        if (instence == nil) {
            instence = [super allocWithZone:zone];
            return instence;
        }
    }
    return nil;
}

-(id) copyWithZone:(NSZone *)zone{
    return self;
}

-(id) retain{
    return self;
}

-(unsigned) retainCount{
    return UINT_MAX;
}

-(id) autorelease{
    return self;
}

-(void) addPosition:(NSString *) type position:(NSString *) position{
    [_disherPostion setObject:position forKey:type];
}
@end
